package com.hy.medicine.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 库存操作DTO
 */
@Data
public class StockOperateDTO {
    /**
     * 药品ID
     */
    @NotNull(message = "药品ID不能为空")
    private Integer medicineId;

    /**
     * 操作数量
     */
    @NotNull(message = "操作数量不能为空")
    @Min(value = 1, message = "操作数量必须大于0")
    private Integer quantity;

    /**
     * 存放位置
     */
    @NotBlank(message = "存放位置不能为空")
    private String warehouseLocation;

    /**
     * 操作人ID
     */
    @NotNull(message = "操作人ID不能为空")
    private Integer operatorId;

    private String operator;

    /**
     * 备注
     */
    private String remark;
}
